.class public Lframent/FramentOrder;
.super Landroid/support/v4/app/Fragment;
.source "FramentOrder.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lframent/FramentOrder$moncliclistener;
    }
.end annotation


# static fields
.field public static h:Landroid/os/Handler;

.field private static nowshowid:I

.field public static shopshow:Landroid/support/v4/app/FragmentActivity;

.field static strings:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation
.end field

.field public static tv_select_boday:Landroid/widget/TextView;


# instance fields
.field private AnimationDuration:I

.field private anim_mask_layout:Landroid/view/ViewGroup;

.field private areaid:Ljava/lang/String;

.field private bag:Ljava/lang/String;

.field bb:Lbean/GoodsBean;

.field bean:Lbean/GoodsBean;

.field private buyImg:Landroid/widget/ImageView;

.field private buyNum:I

.field private ca:Ldata/PupCarAdapter;

.field private cartallcost:Landroid/widget/TextView;

.field private cartallshu:Landroid/widget/TextView;

.field private close:Landroid/widget/TextView;

.field private context:Landroid/content/Context;

.field private cursor:Landroid/database/Cursor;

.field private cv:Landroid/content/ContentValues;

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field private del:Landroid/widget/TextView;

.field private fountString:Ljava/lang/String;

.field private gdbd:Ldata/GoodsAdapter;

.field gdbd1:Ldata/GoodsAdapter;

.field private goint:I

.field private goodsid:Ljava/lang/String;

.field private goodsls:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation
.end field

.field private goodsstr:Ljava/lang/String;

.field private handler:Landroid/os/Handler;

.field private helper:Ldbclass/DBOpenHelper;

.field private houString:Ljava/lang/String;

.field private img_Float:Landroid/widget/ImageView;

.field private inflater:Landroid/view/LayoutInflater;

.field private islocked:Z

.field k:I

.field private list:Landroid/widget/ListView;

.field private listView:Landroid/widget/ListView;

.field private listView2:Landroid/widget/ListView;

.field private ll_order1:Landroid/widget/LinearLayout;

.field private ll_sell_hot:Landroid/widget/LinearLayout;

.field private loaddata:Z

.field m:Lmyapp/MyApp;

.field private mHandler:Landroid/os/Handler;

.field private mWebView:Landroid/webkit/WebView;

.field private mcontext:Landroid/content/Context;

.field private must:Landroid/widget/TextView;

.field private noticd2:Landroid/widget/TextView;

.field open:Ljava/lang/String;

.field private order_bag:Landroid/widget/TextView;

.field private pay:Landroid/widget/LinearLayout;

.field pd:Landroid/app/ProgressDialog;

.field private pingstr:Ljava/lang/String;

.field private final requestcode:I

.field private rl_shopbox:Landroid/widget/RelativeLayout;

.field private savedInstanceState:Landroid/os/Bundle;

.field private shopCart:Landroid/widget/ImageView;

.field private shopid:Ljava/lang/String;

.field shoplayout:Landroid/widget/LinearLayout;

.field private shopname:Ljava/lang/String;

.field private shopstr:Ljava/lang/String;

.field private shoptyls:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lbean/ShoptypeBean;",
            ">;"
        }
    .end annotation
.end field

.field private start:I

.field private stbd:Ldata/ShoptTypeData;

.field private style_top:Landroid/widget/LinearLayout;

.field private sumcart:I

.field private sumcartcost:F

.field private tempgd:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation
.end field

.field private tempsp:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lbean/ShoptypeBean;",
            ">;"
        }
    .end annotation
.end field

.field private total:Ljava/lang/String;

.field private tv_num:Lmyview/BadgeView;

.field private tv_pay:Landroid/widget/TextView;

.field private tv_sell_hot:Landroid/widget/TextView;

.field private tv_total:Landroid/widget/TextView;

.field private tv_total1:Landroid/widget/TextView;

.field private view:Landroid/view/View;

.field private view2:Landroid/view/View;

.field private views:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Landroid/view/View;",
            ">;"
        }
    .end annotation
.end field

.field private views2:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Landroid/view/View;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 93
    const/4 v0, 0x0

    sput-object v0, Lframent/FramentOrder;->h:Landroid/os/Handler;

    .line 161
    const/4 v0, -0x1

    sput v0, Lframent/FramentOrder;->nowshowid:I

    return-void
.end method

.method public constructor <init>()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x0

    .line 79
    invoke-direct {p0}, Landroid/support/v4/app/Fragment;-><init>()V

    .line 83
    iput-object v1, p0, Lframent/FramentOrder;->m:Lmyapp/MyApp;

    .line 86
    const-string v0, "0"

    iput-object v0, p0, Lframent/FramentOrder;->shopid:Ljava/lang/String;

    .line 94
    iput v2, p0, Lframent/FramentOrder;->k:I

    .line 107
    const-string v0, ""

    iput-object v0, p0, Lframent/FramentOrder;->areaid:Ljava/lang/String;

    .line 111
    iput-object v1, p0, Lframent/FramentOrder;->shoplayout:Landroid/widget/LinearLayout;

    .line 112
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lframent/FramentOrder;->mHandler:Landroid/os/Handler;

    .line 113
    iput-object v1, p0, Lframent/FramentOrder;->pd:Landroid/app/ProgressDialog;

    .line 114
    iput-boolean v2, p0, Lframent/FramentOrder;->loaddata:Z

    .line 115
    iput-object v1, p0, Lframent/FramentOrder;->goodsstr:Ljava/lang/String;

    .line 117
    iput-object v1, p0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    .line 120
    const-string v0, ""

    iput-object v0, p0, Lframent/FramentOrder;->shopname:Ljava/lang/String;

    .line 121
    const-string v0, ""

    iput-object v0, p0, Lframent/FramentOrder;->shopstr:Ljava/lang/String;

    .line 122
    const-string v0, ""

    iput-object v0, p0, Lframent/FramentOrder;->pingstr:Ljava/lang/String;

    .line 123
    iput v2, p0, Lframent/FramentOrder;->goint:I

    .line 140
    const-string v0, ""

    iput-object v0, p0, Lframent/FramentOrder;->fountString:Ljava/lang/String;

    .line 141
    const-string v0, ""

    iput-object v0, p0, Lframent/FramentOrder;->houString:Ljava/lang/String;

    .line 146
    const/4 v0, -0x1

    iput v0, p0, Lframent/FramentOrder;->start:I

    .line 147
    const/4 v0, 0x1

    iput-boolean v0, p0, Lframent/FramentOrder;->islocked:Z

    .line 151
    const/16 v0, 0x7b

    iput v0, p0, Lframent/FramentOrder;->requestcode:I

    .line 157
    iput v2, p0, Lframent/FramentOrder;->buyNum:I

    .line 159
    const/16 v0, 0x320

    iput v0, p0, Lframent/FramentOrder;->AnimationDuration:I

    .line 79
    return-void
.end method

.method static synthetic access$0(Lframent/FramentOrder;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 92
    iget-object v0, p0, Lframent/FramentOrder;->context:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$1(Lframent/FramentOrder;)Lmyview/BadgeView;
    .locals 1

    .prologue
    .line 85
    iget-object v0, p0, Lframent/FramentOrder;->tv_num:Lmyview/BadgeView;

    return-object v0
.end method

.method static synthetic access$10(Lframent/FramentOrder;)Ljava/util/ArrayList;
    .locals 1

    .prologue
    .line 100
    iget-object v0, p0, Lframent/FramentOrder;->goodsls:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$11(Lframent/FramentOrder;)Ljava/util/ArrayList;
    .locals 1

    .prologue
    .line 98
    iget-object v0, p0, Lframent/FramentOrder;->tempsp:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$12(Lframent/FramentOrder;)Ljava/util/ArrayList;
    .locals 1

    .prologue
    .line 100
    iget-object v0, p0, Lframent/FramentOrder;->tempgd:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$13(Lframent/FramentOrder;)Landroid/widget/ListView;
    .locals 1

    .prologue
    .line 103
    iget-object v0, p0, Lframent/FramentOrder;->listView:Landroid/widget/ListView;

    return-object v0
.end method

.method static synthetic access$14(Lframent/FramentOrder;Ldata/ShoptTypeData;)V
    .locals 0

    .prologue
    .line 124
    iput-object p1, p0, Lframent/FramentOrder;->stbd:Ldata/ShoptTypeData;

    return-void
.end method

.method static synthetic access$15(I)V
    .locals 0

    .prologue
    .line 161
    sput p0, Lframent/FramentOrder;->nowshowid:I

    return-void
.end method

.method static synthetic access$16()I
    .locals 1

    .prologue
    .line 161
    sget v0, Lframent/FramentOrder;->nowshowid:I

    return v0
.end method

.method static synthetic access$17(Lframent/FramentOrder;)Ldbclass/DBOpenHelper;
    .locals 1

    .prologue
    .line 116
    iget-object v0, p0, Lframent/FramentOrder;->helper:Ldbclass/DBOpenHelper;

    return-object v0
.end method

.method static synthetic access$18(Lframent/FramentOrder;Landroid/database/Cursor;)V
    .locals 0

    .prologue
    .line 117
    iput-object p1, p0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    return-void
.end method

.method static synthetic access$19(Lframent/FramentOrder;)Landroid/database/Cursor;
    .locals 1

    .prologue
    .line 117
    iget-object v0, p0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    return-object v0
.end method

.method static synthetic access$2(Lframent/FramentOrder;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 86
    iget-object v0, p0, Lframent/FramentOrder;->shopid:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$20(Lframent/FramentOrder;Landroid/widget/ImageView;)V
    .locals 0

    .prologue
    .line 156
    iput-object p1, p0, Lframent/FramentOrder;->buyImg:Landroid/widget/ImageView;

    return-void
.end method

.method static synthetic access$21(Lframent/FramentOrder;)Landroid/widget/ImageView;
    .locals 1

    .prologue
    .line 156
    iget-object v0, p0, Lframent/FramentOrder;->buyImg:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$22(Lframent/FramentOrder;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 107
    iput-object p1, p0, Lframent/FramentOrder;->bag:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$23(Lframent/FramentOrder;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 133
    iput-object p1, p0, Lframent/FramentOrder;->goodsid:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$24(Lframent/FramentOrder;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 133
    iget-object v0, p0, Lframent/FramentOrder;->goodsid:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$25(Lframent/FramentOrder;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 120
    iget-object v0, p0, Lframent/FramentOrder;->shopname:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$26(Lframent/FramentOrder;)Landroid/widget/ListView;
    .locals 1

    .prologue
    .line 104
    iget-object v0, p0, Lframent/FramentOrder;->listView2:Landroid/widget/ListView;

    return-object v0
.end method

.method static synthetic access$27(Lframent/FramentOrder;I)V
    .locals 0

    .prologue
    .line 127
    iput p1, p0, Lframent/FramentOrder;->sumcart:I

    return-void
.end method

.method static synthetic access$28(Lframent/FramentOrder;F)V
    .locals 0

    .prologue
    .line 128
    iput p1, p0, Lframent/FramentOrder;->sumcartcost:F

    return-void
.end method

.method static synthetic access$29(Lframent/FramentOrder;)I
    .locals 1

    .prologue
    .line 127
    iget v0, p0, Lframent/FramentOrder;->sumcart:I

    return v0
.end method

.method static synthetic access$3(Lframent/FramentOrder;)Landroid/webkit/WebView;
    .locals 1

    .prologue
    .line 110
    iget-object v0, p0, Lframent/FramentOrder;->mWebView:Landroid/webkit/WebView;

    return-object v0
.end method

.method static synthetic access$30(Lframent/FramentOrder;)F
    .locals 1

    .prologue
    .line 128
    iget v0, p0, Lframent/FramentOrder;->sumcartcost:F

    return v0
.end method

.method static synthetic access$31(Lframent/FramentOrder;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 84
    iget-object v0, p0, Lframent/FramentOrder;->tv_total:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$32(Lframent/FramentOrder;)Landroid/view/View;
    .locals 1

    .prologue
    .line 81
    iget-object v0, p0, Lframent/FramentOrder;->view:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$33(Lframent/FramentOrder;)Landroid/widget/ListView;
    .locals 1

    .prologue
    .line 165
    iget-object v0, p0, Lframent/FramentOrder;->list:Landroid/widget/ListView;

    return-object v0
.end method

.method static synthetic access$34(Lframent/FramentOrder;)Ljava/util/List;
    .locals 1

    .prologue
    .line 1508
    invoke-direct {p0}, Lframent/FramentOrder;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$35(Lframent/FramentOrder;Ldata/PupCarAdapter;)V
    .locals 0

    .prologue
    .line 163
    iput-object p1, p0, Lframent/FramentOrder;->ca:Ldata/PupCarAdapter;

    return-void
.end method

.method static synthetic access$36(Lframent/FramentOrder;)Ldata/PupCarAdapter;
    .locals 1

    .prologue
    .line 163
    iget-object v0, p0, Lframent/FramentOrder;->ca:Ldata/PupCarAdapter;

    return-object v0
.end method

.method static synthetic access$37(Lframent/FramentOrder;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 166
    iget-object v0, p0, Lframent/FramentOrder;->del:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$38(Lframent/FramentOrder;)Landroid/database/sqlite/SQLiteDatabase;
    .locals 1

    .prologue
    .line 118
    iget-object v0, p0, Lframent/FramentOrder;->db:Landroid/database/sqlite/SQLiteDatabase;

    return-object v0
.end method

.method static synthetic access$39(Lframent/FramentOrder;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 167
    iget-object v0, p0, Lframent/FramentOrder;->close:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$4(Lframent/FramentOrder;Z)V
    .locals 0

    .prologue
    .line 114
    iput-boolean p1, p0, Lframent/FramentOrder;->loaddata:Z

    return-void
.end method

.method static synthetic access$40(Lframent/FramentOrder;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 84
    iget-object v0, p0, Lframent/FramentOrder;->order_bag:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$41(Lframent/FramentOrder;)Landroid/content/ContentValues;
    .locals 1

    .prologue
    .line 119
    iget-object v0, p0, Lframent/FramentOrder;->cv:Landroid/content/ContentValues;

    return-object v0
.end method

.method static synthetic access$42(Lframent/FramentOrder;)Landroid/widget/RelativeLayout;
    .locals 1

    .prologue
    .line 90
    iget-object v0, p0, Lframent/FramentOrder;->rl_shopbox:Landroid/widget/RelativeLayout;

    return-object v0
.end method

.method static synthetic access$43(Lframent/FramentOrder;)I
    .locals 1

    .prologue
    .line 159
    iget v0, p0, Lframent/FramentOrder;->AnimationDuration:I

    return v0
.end method

.method static synthetic access$44(Lframent/FramentOrder;Landroid/view/ViewGroup;)V
    .locals 0

    .prologue
    .line 155
    iput-object p1, p0, Lframent/FramentOrder;->anim_mask_layout:Landroid/view/ViewGroup;

    return-void
.end method

.method static synthetic access$45(Lframent/FramentOrder;)Landroid/view/ViewGroup;
    .locals 1

    .prologue
    .line 155
    iget-object v0, p0, Lframent/FramentOrder;->anim_mask_layout:Landroid/view/ViewGroup;

    return-object v0
.end method

.method static synthetic access$5(Lframent/FramentOrder;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 115
    iget-object v0, p0, Lframent/FramentOrder;->goodsstr:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$6(Lframent/FramentOrder;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 109
    iget-object v0, p0, Lframent/FramentOrder;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$7(Lframent/FramentOrder;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 136
    iget-object v0, p0, Lframent/FramentOrder;->noticd2:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$8(Lframent/FramentOrder;)Ldata/ShoptTypeData;
    .locals 1

    .prologue
    .line 124
    iget-object v0, p0, Lframent/FramentOrder;->stbd:Ldata/ShoptTypeData;

    return-object v0
.end method

.method static synthetic access$9(Lframent/FramentOrder;)Ljava/util/ArrayList;
    .locals 1

    .prologue
    .line 98
    iget-object v0, p0, Lframent/FramentOrder;->shoptyls:Ljava/util/ArrayList;

    return-object v0
.end method

.method private getAllGoodsBeanList()Ljava/util/List;
    .locals 13
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation

    .prologue
    .line 1511
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 1513
    .local v0, "GoodsBeans":Ljava/util/List;, "Ljava/util/List<Lbean/GoodsBean;>;"
    iget-object v10, p0, Lframent/FramentOrder;->db:Landroid/database/sqlite/SQLiteDatabase;

    new-instance v11, Ljava/lang/StringBuilder;

    const-string v12, "select * from cart where shopid="

    invoke-direct {v11, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v12, p0, Lframent/FramentOrder;->shopid:Ljava/lang/String;

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    const/4 v12, 0x0

    invoke-virtual {v10, v11, v12}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v2

    .line 1514
    .local v2, "cursor":Landroid/database/Cursor;
    :goto_0
    invoke-interface {v2}, Landroid/database/Cursor;->moveToNext()Z

    move-result v10

    if-nez v10, :cond_0

    .line 1534
    return-object v0

    .line 1515
    :cond_0
    new-instance v5, Lbean/GoodsBean;

    invoke-direct {v5}, Lbean/GoodsBean;-><init>()V

    .line 1516
    .local v5, "goodsBean":Lbean/GoodsBean;
    const-string v10, "goodsid"

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v10

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    .line 1517
    .local v4, "goodid":Ljava/lang/String;
    const-string v10, "shopid"

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v10

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v9

    .line 1518
    .local v9, "shopid":Ljava/lang/String;
    const-string v10, "goodsname"

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v10

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v7

    .line 1519
    .local v7, "goodsname":Ljava/lang/String;
    const-string v10, "goodscount"

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v10

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 1520
    .local v1, "count":Ljava/lang/String;
    const-string v10, "goodscost"

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v10

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v6

    .line 1521
    .local v6, "goodscost":Ljava/lang/String;
    const-string v10, "pid"

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v10

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v8

    .line 1522
    .local v8, "pid":Ljava/lang/String;
    const-string v10, "pnum"

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v10

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 1524
    .local v3, "ggnum":Ljava/lang/String;
    invoke-virtual {v5, v4}, Lbean/GoodsBean;->setId(Ljava/lang/String;)V

    .line 1525
    invoke-virtual {v5, v9}, Lbean/GoodsBean;->setShopid(Ljava/lang/String;)V

    .line 1526
    invoke-virtual {v5, v7}, Lbean/GoodsBean;->setname(Ljava/lang/String;)V

    .line 1527
    invoke-virtual {v5, v1}, Lbean/GoodsBean;->setcounts(Ljava/lang/String;)V

    .line 1528
    invoke-static {v6}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/Float;->floatValue()F

    move-result v10

    invoke-virtual {v5, v10}, Lbean/GoodsBean;->setcost(F)V

    .line 1529
    invoke-virtual {v5, v8}, Lbean/GoodsBean;->setGgid(Ljava/lang/String;)V

    .line 1530
    invoke-virtual {v5, v3}, Lbean/GoodsBean;->setGgnum(Ljava/lang/String;)V

    .line 1532
    invoke-interface {v0, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0
.end method

.method private initVeiw()V
    .locals 4

    .prologue
    .line 1180
    iget-object v1, p0, Lframent/FramentOrder;->view:Landroid/view/View;

    const v2, 0x7f0c0057

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ListView;

    iput-object v1, p0, Lframent/FramentOrder;->listView:Landroid/widget/ListView;

    .line 1181
    iget-object v1, p0, Lframent/FramentOrder;->view:Landroid/view/View;

    const v2, 0x7f0c01b6

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ListView;

    iput-object v1, p0, Lframent/FramentOrder;->listView2:Landroid/widget/ListView;

    .line 1182
    iget-object v1, p0, Lframent/FramentOrder;->view:Landroid/view/View;

    const v2, 0x7f0c01b3

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    sput-object v1, Lframent/FramentOrder;->tv_select_boday:Landroid/widget/TextView;

    .line 1183
    iget-object v1, p0, Lframent/FramentOrder;->view:Landroid/view/View;

    const v2, 0x7f0c01b9

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lmyview/BadgeView;

    iput-object v1, p0, Lframent/FramentOrder;->tv_num:Lmyview/BadgeView;

    .line 1184
    iget-object v1, p0, Lframent/FramentOrder;->view:Landroid/view/View;

    const v2, 0x7f0c007b

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lframent/FramentOrder;->tv_pay:Landroid/widget/TextView;

    .line 1185
    iget-object v1, p0, Lframent/FramentOrder;->view:Landroid/view/View;

    const v2, 0x7f0c01b7

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lframent/FramentOrder;->tv_total:Landroid/widget/TextView;

    .line 1186
    iget-object v1, p0, Lframent/FramentOrder;->view:Landroid/view/View;

    const v2, 0x7f0c01a3

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lframent/FramentOrder;->tv_total1:Landroid/widget/TextView;

    .line 1187
    iget-object v1, p0, Lframent/FramentOrder;->view:Landroid/view/View;

    const v2, 0x7f0c01a6

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/RelativeLayout;

    iput-object v1, p0, Lframent/FramentOrder;->rl_shopbox:Landroid/widget/RelativeLayout;

    .line 1188
    iget-object v1, p0, Lframent/FramentOrder;->view:Landroid/view/View;

    const v2, 0x7f0c01b8

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lframent/FramentOrder;->order_bag:Landroid/widget/TextView;

    .line 1189
    iget-object v1, p0, Lframent/FramentOrder;->view:Landroid/view/View;

    const v2, 0x7f0c000a

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, p0, Lframent/FramentOrder;->img_Float:Landroid/widget/ImageView;

    .line 1191
    iget-object v1, p0, Lframent/FramentOrder;->view:Landroid/view/View;

    const v2, 0x7f0c01b1

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lframent/FramentOrder;->noticd2:Landroid/widget/TextView;

    .line 1193
    iget-object v1, p0, Lframent/FramentOrder;->view:Landroid/view/View;

    const v2, 0x7f0c01b2

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    iput-object v1, p0, Lframent/FramentOrder;->style_top:Landroid/widget/LinearLayout;

    .line 1194
    iget-object v1, p0, Lframent/FramentOrder;->view:Landroid/view/View;

    const v2, 0x7f0c007f

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ListView;

    iput-object v1, p0, Lframent/FramentOrder;->list:Landroid/widget/ListView;

    .line 1196
    iget-object v1, p0, Lframent/FramentOrder;->context:Landroid/content/Context;

    const v2, 0x7f0300ba

    const/4 v3, 0x0

    invoke-static {v1, v2, v3}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 1197
    .local v0, "dishes_particular_top":Landroid/view/View;
    iget-object v1, p0, Lframent/FramentOrder;->list:Landroid/widget/ListView;

    invoke-virtual {v1, v0}, Landroid/widget/ListView;->addHeaderView(Landroid/view/View;)V

    .line 1198
    const v1, 0x7f0c036d

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lframent/FramentOrder;->del:Landroid/widget/TextView;

    .line 1199
    const v1, 0x7f0c00a8

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lframent/FramentOrder;->close:Landroid/widget/TextView;

    .line 1201
    iget-object v1, p0, Lframent/FramentOrder;->view:Landroid/view/View;

    const v2, 0x7f0c019d

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lframent/FramentOrder;->must:Landroid/widget/TextView;

    .line 1202
    iget-object v1, p0, Lframent/FramentOrder;->view:Landroid/view/View;

    const v2, 0x7f0c007a

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    iput-object v1, p0, Lframent/FramentOrder;->pay:Landroid/widget/LinearLayout;

    .line 1203
    return-void
.end method

.method private setOncliclistener()V
    .locals 3

    .prologue
    .line 1116
    iget-object v0, p0, Lframent/FramentOrder;->rl_shopbox:Landroid/widget/RelativeLayout;

    new-instance v1, Lframent/FramentOrder$moncliclistener;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lframent/FramentOrder$moncliclistener;-><init>(Lframent/FramentOrder;Lframent/FramentOrder$moncliclistener;)V

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 1117
    return-void
.end method


# virtual methods
.method public addcart(I)V
    .locals 19
    .param p1, "position"    # I

    .prologue
    .line 971
    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->goodsls:Ljava/util/ArrayList;

    move/from16 v0, p1

    invoke-virtual {v14, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Lbean/GoodsBean;

    .line 973
    .local v11, "mygoods":Lbean/GoodsBean;
    invoke-virtual {v11}, Lbean/GoodsBean;->getId()Ljava/lang/String;

    move-result-object v7

    .line 975
    .local v7, "gid":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v14}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v14

    .line 976
    new-instance v15, Ljava/lang/StringBuilder;

    const-string v16, "select * from cart where goodsid="

    invoke-direct/range {v15 .. v16}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v15, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    const/16 v16, 0x0

    .line 975
    invoke-virtual/range {v14 .. v16}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v14

    move-object/from16 v0, p0

    iput-object v14, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    .line 977
    const/4 v9, 0x0

    .line 978
    .local v9, "goodscount":I
    const/4 v8, 0x0

    .line 979
    .local v8, "goodscostone":F
    const/4 v4, 0x1

    .line 980
    .local v4, "checkgd":Z
    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    if-eqz v14, :cond_2

    .line 981
    :goto_0
    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    invoke-interface {v14}, Landroid/database/Cursor;->moveToNext()Z

    move-result v14

    if-nez v14, :cond_1

    .line 993
    :goto_1
    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    invoke-interface {v14}, Landroid/database/Cursor;->close()V

    .line 994
    const/4 v3, 0x1

    .line 995
    .local v3, "checkcart":Z
    add-int/lit8 v12, v9, 0x1

    .line 996
    .local v12, "newgoodcount":I
    invoke-virtual {v11}, Lbean/GoodsBean;->getcounts()Ljava/lang/String;

    move-result-object v14

    invoke-static {v14}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/Integer;->intValue()I

    move-result v2

    .line 997
    .local v2, "check1":I
    if-ge v2, v12, :cond_3

    .line 998
    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->context:Landroid/content/Context;

    const-string v15, "\u63d0\u793a\u4fe1\u606f"

    const-string v16, "\u5e93\u5b58\u4e0d\u8db3"

    invoke-static/range {v14 .. v16}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 1041
    :cond_0
    :goto_2
    return-void

    .line 982
    .end local v2    # "check1":I
    .end local v3    # "checkcart":Z
    .end local v12    # "newgoodcount":I
    :cond_1
    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    move-object/from16 v0, p0

    iget-object v15, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    .line 983
    const-string v16, "goodscount"

    invoke-interface/range {v15 .. v16}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v15

    .line 982
    invoke-interface {v14, v15}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v14

    invoke-static {v14}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/Integer;->intValue()I

    move-result v9

    .line 984
    const/4 v4, 0x0

    .line 985
    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    move-object/from16 v0, p0

    iget-object v15, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    .line 986
    const-string v16, "goodscost"

    invoke-interface/range {v15 .. v16}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v15

    .line 985
    invoke-interface {v14, v15}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v14

    invoke-static {v14}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/Float;->floatValue()F

    move-result v5

    .line 987
    .local v5, "dajia":F
    const/high16 v14, 0x42c80000    # 100.0f

    mul-float/2addr v14, v5

    invoke-static {v14}, Ljava/lang/Math;->round(F)I

    move-result v14

    int-to-float v14, v14

    const/high16 v15, 0x42c80000    # 100.0f

    div-float v8, v14, v15

    goto :goto_0

    .line 991
    .end local v5    # "dajia":F
    :cond_2
    const/4 v4, 0x1

    goto :goto_1

    .line 1003
    .restart local v2    # "check1":I
    .restart local v3    # "checkcart":Z
    .restart local v12    # "newgoodcount":I
    :cond_3
    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->goodsls:Ljava/util/ArrayList;

    invoke-virtual {v14}, Ljava/util/ArrayList;->size()I

    move-result v14

    move/from16 v0, p1

    if-lt v14, v0, :cond_0

    .line 1009
    if-eqz v4, :cond_5

    .line 1011
    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v15, "insert into cart (shopid,goodsid,goodsname,goodscount,goodscost,pnum,type) values(?,?,?,?,?,?,?)"

    .line 1012
    const/16 v16, 0x7

    move/from16 v0, v16

    new-array v0, v0, [Ljava/lang/Object;

    move-object/from16 v16, v0

    const/16 v17, 0x0

    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder;->shopid:Ljava/lang/String;

    move-object/from16 v18, v0

    aput-object v18, v16, v17

    const/16 v17, 0x1

    aput-object v7, v16, v17

    const/16 v17, 0x2

    invoke-virtual {v11}, Lbean/GoodsBean;->getname()Ljava/lang/String;

    move-result-object v18

    aput-object v18, v16, v17

    const/16 v17, 0x3

    .line 1013
    invoke-static {v12}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v18

    aput-object v18, v16, v17

    const/16 v17, 0x4

    invoke-virtual {v11}, Lbean/GoodsBean;->getcost()F

    move-result v18

    invoke-static/range {v18 .. v18}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v18

    aput-object v18, v16, v17

    const/16 v17, 0x5

    const-string v18, "0"

    aput-object v18, v16, v17

    const/16 v17, 0x6

    const-string v18, "0"

    aput-object v18, v16, v17

    .line 1011
    invoke-virtual/range {v14 .. v16}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 1014
    invoke-virtual {v11}, Lbean/GoodsBean;->getcost()F

    move-result v14

    invoke-static {v14}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/Float;->floatValue()F

    move-result v5

    .line 1015
    .restart local v5    # "dajia":F
    const/high16 v14, 0x42c80000    # 100.0f

    mul-float/2addr v14, v5

    invoke-static {v14}, Ljava/lang/Math;->round(F)I

    move-result v14

    int-to-float v14, v14

    const/high16 v15, 0x42c80000    # 100.0f

    div-float v8, v14, v15

    .line 1022
    .end local v5    # "dajia":F
    :goto_3
    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->listView2:Landroid/widget/ListView;

    move-object/from16 v0, p0

    move/from16 v1, p1

    invoke-virtual {v0, v1, v14}, Lframent/FramentOrder;->getViewByPosition(ILandroid/widget/ListView;)Landroid/view/View;

    move-result-object v13

    .line 1023
    .local v13, "tempview":Landroid/view/View;
    const v14, 0x7f0c0081

    invoke-virtual {v13, v14}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v10

    check-cast v10, Landroid/widget/TextView;

    .line 1024
    .local v10, "goodscoust":Landroid/widget/TextView;
    invoke-static {v12}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v10, v14}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1026
    const v14, 0x7f0c0080

    invoke-virtual {v13, v14}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/ImageView;

    .line 1027
    .local v6, "delbtn":Landroid/widget/ImageView;
    const/4 v14, 0x0

    invoke-virtual {v6, v14}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 1028
    const/4 v14, 0x0

    invoke-virtual {v10, v14}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1031
    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->goodsls:Ljava/util/ArrayList;

    move/from16 v0, p1

    invoke-virtual {v14, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v14

    check-cast v14, Lbean/GoodsBean;

    invoke-static {v12}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Lbean/GoodsBean;->setCart(Ljava/lang/String;)V

    .line 1032
    move-object/from16 v0, p0

    iget v14, v0, Lframent/FramentOrder;->sumcart:I

    add-int/lit8 v14, v14, 0x1

    move-object/from16 v0, p0

    iput v14, v0, Lframent/FramentOrder;->sumcart:I

    .line 1033
    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->tv_num:Lmyview/BadgeView;

    move-object/from16 v0, p0

    iget v15, v0, Lframent/FramentOrder;->sumcart:I

    invoke-static {v15}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Lmyview/BadgeView;->setText(Ljava/lang/CharSequence;)V

    .line 1034
    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->rl_shopbox:Landroid/widget/RelativeLayout;

    const v15, 0x7f02009e

    invoke-virtual {v14, v15}, Landroid/widget/RelativeLayout;->setBackgroundResource(I)V

    .line 1035
    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->m:Lmyapp/MyApp;

    invoke-virtual {v14}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v14

    const-string v15, "1"

    invoke-virtual {v14, v15}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v14

    if-eqz v14, :cond_4

    .line 1036
    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->rl_shopbox:Landroid/widget/RelativeLayout;

    const v15, 0x7f020021

    invoke-virtual {v14, v15}, Landroid/widget/RelativeLayout;->setBackgroundResource(I)V

    .line 1038
    :cond_4
    move-object/from16 v0, p0

    iget v14, v0, Lframent/FramentOrder;->sumcartcost:F

    add-float/2addr v14, v8

    move-object/from16 v0, p0

    iput v14, v0, Lframent/FramentOrder;->sumcartcost:F

    .line 1039
    move-object/from16 v0, p0

    iget v14, v0, Lframent/FramentOrder;->sumcartcost:F

    const/high16 v15, 0x42c80000    # 100.0f

    mul-float/2addr v14, v15

    invoke-static {v14}, Ljava/lang/Math;->round(F)I

    move-result v14

    int-to-float v14, v14

    const/high16 v15, 0x42c80000    # 100.0f

    div-float/2addr v14, v15

    move-object/from16 v0, p0

    iput v14, v0, Lframent/FramentOrder;->sumcartcost:F

    .line 1040
    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->tv_total:Landroid/widget/TextView;

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-direct {v15}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p0

    iget v0, v0, Lframent/FramentOrder;->sumcartcost:F

    move/from16 v16, v0

    invoke-static/range {v16 .. v16}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v16

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_2

    .line 1018
    .end local v6    # "delbtn":Landroid/widget/ImageView;
    .end local v10    # "goodscoust":Landroid/widget/TextView;
    .end local v13    # "tempview":Landroid/view/View;
    :cond_5
    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->cv:Landroid/content/ContentValues;

    const-string v15, "goodscount"

    invoke-static {v12}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v16

    invoke-virtual/range {v14 .. v16}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 1019
    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v15, "cart"

    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder;->cv:Landroid/content/ContentValues;

    move-object/from16 v16, v0

    new-instance v17, Ljava/lang/StringBuilder;

    const-string v18, "goodsid = \'"

    invoke-direct/range {v17 .. v18}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v17

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    const-string v18, "\'"

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v17

    const/16 v18, 0x0

    invoke-virtual/range {v14 .. v18}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    goto/16 :goto_3
.end method

.method public del(I)V
    .locals 18
    .param p1, "position"    # I

    .prologue
    .line 1385
    invoke-direct/range {p0 .. p0}, Lframent/FramentOrder;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v13

    move/from16 v0, p1

    invoke-interface {v13, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Lbean/GoodsBean;

    .line 1387
    .local v9, "mygoods":Lbean/GoodsBean;
    invoke-virtual {v9}, Lbean/GoodsBean;->getId()Ljava/lang/String;

    move-result-object v5

    .line 1388
    .local v5, "gid":Ljava/lang/String;
    invoke-virtual {v9}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v13

    if-nez v13, :cond_6

    .line 1389
    const-string v13, "del"

    move-object/from16 v0, p0

    invoke-virtual {v0, v5, v13}, Lframent/FramentOrder;->refresh(Ljava/lang/String;Ljava/lang/String;)V

    .line 1390
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v13}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v13

    .line 1391
    new-instance v14, Ljava/lang/StringBuilder;

    const-string v15, "select * from cart where goodsid="

    invoke-direct {v14, v15}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v14, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    const/4 v15, 0x0

    .line 1390
    invoke-virtual {v13, v14, v15}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v13

    move-object/from16 v0, p0

    iput-object v13, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    .line 1392
    const/4 v7, 0x0

    .line 1393
    .local v7, "goodscount":I
    const/4 v1, 0x1

    .line 1394
    .local v1, "checkgd":Z
    const/4 v6, 0x0

    .line 1395
    .local v6, "goodscostone":F
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    if-eqz v13, :cond_1

    .line 1396
    :goto_0
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    invoke-interface {v13}, Landroid/database/Cursor;->moveToNext()Z

    move-result v13

    if-nez v13, :cond_0

    .line 1407
    :goto_1
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    invoke-interface {v13}, Landroid/database/Cursor;->close()V

    .line 1408
    if-eqz v1, :cond_2

    .line 1409
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->mcontext:Landroid/content/Context;

    const-string v14, "\u63d0\u793a\u4fe1\u606f"

    const-string v15, ""

    invoke-static {v13, v14, v15}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 1506
    .end local v7    # "goodscount":I
    :goto_2
    return-void

    .line 1397
    .restart local v7    # "goodscount":I
    :cond_0
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    .line 1398
    const-string v15, "goodscount"

    invoke-interface {v14, v15}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v14

    .line 1397
    invoke-interface {v13, v14}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v13

    invoke-static {v13}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/Integer;->intValue()I

    move-result v7

    .line 1399
    const/4 v1, 0x0

    .line 1400
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    .line 1401
    const-string v15, "goodscost"

    invoke-interface {v14, v15}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v14

    .line 1400
    invoke-interface {v13, v14}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v13

    invoke-static {v13}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/Float;->floatValue()F

    move-result v2

    .line 1402
    .local v2, "dajia":F
    const/high16 v13, 0x42c80000    # 100.0f

    mul-float/2addr v13, v2

    invoke-static {v13}, Ljava/lang/Math;->round(F)I

    move-result v13

    int-to-float v13, v13

    const/high16 v14, 0x42c80000    # 100.0f

    div-float v6, v13, v14

    goto :goto_0

    .line 1405
    .end local v2    # "dajia":F
    :cond_1
    const/4 v1, 0x1

    goto :goto_1

    .line 1412
    :cond_2
    add-int/lit8 v10, v7, -0x1

    .line 1413
    .local v10, "newgoodcount":I
    const/4 v13, 0x1

    if-ge v10, v13, :cond_5

    .line 1415
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v14, "cart"

    new-instance v15, Ljava/lang/StringBuilder;

    const-string v16, "goodsid = \'"

    invoke-direct/range {v15 .. v16}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v15, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    const-string v16, "\'"

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    const/16 v16, 0x0

    invoke-virtual/range {v13 .. v16}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    .line 1416
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->goodsls:Ljava/util/ArrayList;

    move/from16 v0, p1

    invoke-virtual {v13, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Lbean/GoodsBean;

    invoke-static {v10}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v13, v14}, Lbean/GoodsBean;->setCart(Ljava/lang/String;)V

    .line 1417
    invoke-direct/range {p0 .. p0}, Lframent/FramentOrder;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v13

    invoke-interface {v13}, Ljava/util/List;->size()I

    move-result v13

    if-lez v13, :cond_4

    .line 1418
    new-instance v13, Ldata/PupCarAdapter;

    invoke-virtual/range {p0 .. p0}, Lframent/FramentOrder;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v14

    invoke-direct/range {p0 .. p0}, Lframent/FramentOrder;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v15

    invoke-direct {v13, v14, v15}, Ldata/PupCarAdapter;-><init>(Landroid/content/Context;Ljava/util/List;)V

    move-object/from16 v0, p0

    iput-object v13, v0, Lframent/FramentOrder;->ca:Ldata/PupCarAdapter;

    .line 1419
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->list:Landroid/widget/ListView;

    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->ca:Ldata/PupCarAdapter;

    invoke-virtual {v13, v14}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 1420
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->ca:Ldata/PupCarAdapter;

    invoke-virtual {v13}, Ldata/PupCarAdapter;->notifyDataSetChanged()V

    .line 1438
    :goto_3
    move-object/from16 v0, p0

    iget v13, v0, Lframent/FramentOrder;->sumcartcost:F

    sub-float/2addr v13, v6

    move-object/from16 v0, p0

    iput v13, v0, Lframent/FramentOrder;->sumcartcost:F

    .line 1440
    move-object/from16 v0, p0

    iget v13, v0, Lframent/FramentOrder;->sumcart:I

    add-int/lit8 v13, v13, -0x1

    move-object/from16 v0, p0

    iput v13, v0, Lframent/FramentOrder;->sumcart:I

    .line 1441
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->tv_num:Lmyview/BadgeView;

    move-object/from16 v0, p0

    iget v14, v0, Lframent/FramentOrder;->sumcart:I

    invoke-static {v14}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v13, v14}, Lmyview/BadgeView;->setText(Ljava/lang/CharSequence;)V

    .line 1442
    move-object/from16 v0, p0

    iget v13, v0, Lframent/FramentOrder;->sumcart:I

    if-nez v13, :cond_3

    .line 1443
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->rl_shopbox:Landroid/widget/RelativeLayout;

    const v14, 0x7f02008c

    invoke-virtual {v13, v14}, Landroid/widget/RelativeLayout;->setBackgroundResource(I)V

    .line 1445
    :cond_3
    move-object/from16 v0, p0

    iget v13, v0, Lframent/FramentOrder;->sumcartcost:F

    const/high16 v14, 0x42c80000    # 100.0f

    mul-float/2addr v13, v14

    invoke-static {v13}, Ljava/lang/Math;->round(F)I

    move-result v13

    int-to-float v13, v13

    const/high16 v14, 0x42c80000    # 100.0f

    div-float/2addr v13, v14

    move-object/from16 v0, p0

    iput v13, v0, Lframent/FramentOrder;->sumcartcost:F

    .line 1446
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->tv_total:Landroid/widget/TextView;

    new-instance v14, Ljava/lang/StringBuilder;

    invoke-direct {v14}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p0

    iget v15, v0, Lframent/FramentOrder;->sumcartcost:F

    invoke-static {v15}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v13, v14}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_2

    .line 1422
    :cond_4
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->list:Landroid/widget/ListView;

    const/16 v14, 0x8

    invoke-virtual {v13, v14}, Landroid/widget/ListView;->setVisibility(I)V

    goto :goto_3

    .line 1427
    :cond_5
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->cv:Landroid/content/ContentValues;

    const-string v14, "goodscount"

    invoke-static {v10}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v15

    invoke-virtual {v13, v14, v15}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 1428
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v14, "cart"

    move-object/from16 v0, p0

    iget-object v15, v0, Lframent/FramentOrder;->cv:Landroid/content/ContentValues;

    new-instance v16, Ljava/lang/StringBuilder;

    const-string v17, "goodsid = \'"

    invoke-direct/range {v16 .. v17}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v16

    invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v16

    const-string v17, "\'"

    invoke-virtual/range {v16 .. v17}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v16

    invoke-virtual/range {v16 .. v16}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v16

    const/16 v17, 0x0

    invoke-virtual/range {v13 .. v17}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    .line 1430
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->goodsls:Ljava/util/ArrayList;

    move/from16 v0, p1

    invoke-virtual {v13, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Lbean/GoodsBean;

    invoke-static {v10}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v13, v14}, Lbean/GoodsBean;->setCart(Ljava/lang/String;)V

    .line 1431
    invoke-direct/range {p0 .. p0}, Lframent/FramentOrder;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v13

    move/from16 v0, p1

    invoke-interface {v13, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Lbean/GoodsBean;

    new-instance v14, Ljava/lang/StringBuilder;

    invoke-static {v10}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v15

    invoke-direct {v14, v15}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v13, v14}, Lbean/GoodsBean;->setcounts(Ljava/lang/String;)V

    .line 1432
    new-instance v13, Ldata/PupCarAdapter;

    invoke-virtual/range {p0 .. p0}, Lframent/FramentOrder;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v14

    invoke-direct/range {p0 .. p0}, Lframent/FramentOrder;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v15

    invoke-direct {v13, v14, v15}, Ldata/PupCarAdapter;-><init>(Landroid/content/Context;Ljava/util/List;)V

    move-object/from16 v0, p0

    iput-object v13, v0, Lframent/FramentOrder;->ca:Ldata/PupCarAdapter;

    .line 1433
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->list:Landroid/widget/ListView;

    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->ca:Ldata/PupCarAdapter;

    invoke-virtual {v13, v14}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 1434
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->ca:Ldata/PupCarAdapter;

    invoke-virtual {v13}, Ldata/PupCarAdapter;->notifyDataSetChanged()V

    goto/16 :goto_3

    .line 1449
    .end local v1    # "checkgd":Z
    .end local v6    # "goodscostone":F
    .end local v7    # "goodscount":I
    .end local v10    # "newgoodcount":I
    :cond_6
    invoke-virtual {v9}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v4

    .line 1450
    .local v4, "ggid":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v13}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v13

    .line 1451
    new-instance v14, Ljava/lang/StringBuilder;

    const-string v15, "select * from cart where pid="

    invoke-direct {v14, v15}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v14, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    const/4 v15, 0x0

    .line 1450
    invoke-virtual {v13, v14, v15}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v13

    move-object/from16 v0, p0

    iput-object v13, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    .line 1452
    const/4 v11, 0x0

    .line 1453
    .local v11, "pnum":I
    const/4 v1, 0x1

    .line 1454
    .restart local v1    # "checkgd":Z
    const/4 v6, 0x0

    .line 1455
    .restart local v6    # "goodscostone":F
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    if-eqz v13, :cond_9

    .line 1456
    :goto_4
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    invoke-interface {v13}, Landroid/database/Cursor;->moveToNext()Z

    move-result v13

    if-nez v13, :cond_8

    .line 1466
    :goto_5
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    invoke-interface {v13}, Landroid/database/Cursor;->close()V

    .line 1468
    add-int/lit8 v10, v11, -0x1

    .line 1470
    .restart local v10    # "newgoodcount":I
    add-int/lit8 v13, p1, 0x1

    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->list:Landroid/widget/ListView;

    move-object/from16 v0, p0

    invoke-virtual {v0, v13, v14}, Lframent/FramentOrder;->getViewByPosition(ILandroid/widget/ListView;)Landroid/view/View;

    move-result-object v12

    .line 1471
    .local v12, "tempview":Landroid/view/View;
    const v13, 0x7f0c0081

    invoke-virtual {v12, v13}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v8

    check-cast v8, Landroid/widget/TextView;

    .line 1472
    .local v8, "goodscoust":Landroid/widget/TextView;
    invoke-static {v10}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v8, v13}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1474
    const/4 v13, 0x1

    if-ge v10, v13, :cond_7

    .line 1475
    const v13, 0x7f0c0080

    invoke-virtual {v12, v13}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ImageView;

    .line 1477
    .local v3, "delbtn":Landroid/widget/ImageView;
    const/16 v13, 0x8

    invoke-virtual {v3, v13}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 1478
    const/16 v13, 0x8

    invoke-virtual {v8, v13}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1481
    .end local v3    # "delbtn":Landroid/widget/ImageView;
    :cond_7
    const/4 v13, 0x1

    if-ge v10, v13, :cond_b

    .line 1483
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v14, "cart"

    new-instance v15, Ljava/lang/StringBuilder;

    const-string v16, "pid = \'"

    invoke-direct/range {v15 .. v16}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v15, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    const-string v16, "\'"

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    const/16 v16, 0x0

    invoke-virtual/range {v13 .. v16}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    .line 1484
    invoke-direct/range {p0 .. p0}, Lframent/FramentOrder;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v13

    invoke-interface {v13}, Ljava/util/List;->size()I

    move-result v13

    if-lez v13, :cond_a

    .line 1485
    new-instance v13, Ldata/PupCarAdapter;

    invoke-virtual/range {p0 .. p0}, Lframent/FramentOrder;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v14

    invoke-direct/range {p0 .. p0}, Lframent/FramentOrder;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v15

    invoke-direct {v13, v14, v15}, Ldata/PupCarAdapter;-><init>(Landroid/content/Context;Ljava/util/List;)V

    move-object/from16 v0, p0

    iput-object v13, v0, Lframent/FramentOrder;->ca:Ldata/PupCarAdapter;

    .line 1486
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->list:Landroid/widget/ListView;

    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->ca:Ldata/PupCarAdapter;

    invoke-virtual {v13, v14}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 1487
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->ca:Ldata/PupCarAdapter;

    invoke-virtual {v13}, Ldata/PupCarAdapter;->notifyDataSetChanged()V

    .line 1499
    :goto_6
    move-object/from16 v0, p0

    iget v13, v0, Lframent/FramentOrder;->sumcartcost:F

    sub-float/2addr v13, v6

    move-object/from16 v0, p0

    iput v13, v0, Lframent/FramentOrder;->sumcartcost:F

    .line 1501
    move-object/from16 v0, p0

    iget v13, v0, Lframent/FramentOrder;->sumcart:I

    add-int/lit8 v13, v13, -0x1

    move-object/from16 v0, p0

    iput v13, v0, Lframent/FramentOrder;->sumcart:I

    .line 1502
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->tv_num:Lmyview/BadgeView;

    move-object/from16 v0, p0

    iget v14, v0, Lframent/FramentOrder;->sumcart:I

    invoke-static {v14}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v13, v14}, Lmyview/BadgeView;->setText(Ljava/lang/CharSequence;)V

    .line 1503
    move-object/from16 v0, p0

    iget v13, v0, Lframent/FramentOrder;->sumcartcost:F

    const/high16 v14, 0x42c80000    # 100.0f

    mul-float/2addr v13, v14

    invoke-static {v13}, Ljava/lang/Math;->round(F)I

    move-result v13

    int-to-float v13, v13

    const/high16 v14, 0x42c80000    # 100.0f

    div-float/2addr v13, v14

    move-object/from16 v0, p0

    iput v13, v0, Lframent/FramentOrder;->sumcartcost:F

    .line 1504
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->tv_total:Landroid/widget/TextView;

    new-instance v14, Ljava/lang/StringBuilder;

    invoke-direct {v14}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p0

    iget v15, v0, Lframent/FramentOrder;->sumcartcost:F

    invoke-static {v15}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v13, v14}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_2

    .line 1457
    .end local v8    # "goodscoust":Landroid/widget/TextView;
    .end local v10    # "newgoodcount":I
    .end local v12    # "tempview":Landroid/view/View;
    :cond_8
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    const-string v15, "pnum"

    invoke-interface {v14, v15}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v14

    invoke-interface {v13, v14}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v13

    invoke-static {v13}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/Integer;->intValue()I

    move-result v11

    .line 1458
    const/4 v1, 0x0

    .line 1459
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    .line 1460
    const-string v15, "goodscost"

    invoke-interface {v14, v15}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v14

    .line 1459
    invoke-interface {v13, v14}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v13

    invoke-static {v13}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/Float;->floatValue()F

    move-result v2

    .line 1461
    .restart local v2    # "dajia":F
    const/high16 v13, 0x42c80000    # 100.0f

    mul-float/2addr v13, v2

    invoke-static {v13}, Ljava/lang/Math;->round(F)I

    move-result v13

    int-to-float v13, v13

    const/high16 v14, 0x42c80000    # 100.0f

    div-float v6, v13, v14

    goto/16 :goto_4

    .line 1464
    .end local v2    # "dajia":F
    :cond_9
    const/4 v1, 0x1

    goto/16 :goto_5

    .line 1489
    .restart local v8    # "goodscoust":Landroid/widget/TextView;
    .restart local v10    # "newgoodcount":I
    .restart local v12    # "tempview":Landroid/view/View;
    :cond_a
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->list:Landroid/widget/ListView;

    const/16 v14, 0x8

    invoke-virtual {v13, v14}, Landroid/widget/ListView;->setVisibility(I)V

    goto/16 :goto_6

    .line 1493
    :cond_b
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->cv:Landroid/content/ContentValues;

    const-string v14, "pnum"

    invoke-static {v10}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v15

    invoke-virtual {v13, v14, v15}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 1494
    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v14, "cart"

    move-object/from16 v0, p0

    iget-object v15, v0, Lframent/FramentOrder;->cv:Landroid/content/ContentValues;

    new-instance v16, Ljava/lang/StringBuilder;

    const-string v17, "pid = \'"

    invoke-direct/range {v16 .. v17}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v16

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v16

    const-string v17, "\'"

    invoke-virtual/range {v16 .. v17}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v16

    invoke-virtual/range {v16 .. v16}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v16

    const/16 v17, 0x0

    invoke-virtual/range {v13 .. v17}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    goto/16 :goto_6
.end method

.method public delcart(I)V
    .locals 17
    .param p1, "position"    # I

    .prologue
    .line 1048
    move-object/from16 v0, p0

    iget-object v12, v0, Lframent/FramentOrder;->goodsls:Ljava/util/ArrayList;

    invoke-virtual {v12}, Ljava/util/ArrayList;->size()I

    move-result v12

    move/from16 v0, p1

    if-ge v12, v0, :cond_0

    .line 1049
    move-object/from16 v0, p0

    iget-object v12, v0, Lframent/FramentOrder;->context:Landroid/content/Context;

    const-string v13, "\u63d0\u793a\u4fe1\u606f"

    const-string v14, "\u5e93\u5b58\u4e0d\u8db3"

    invoke-static {v12, v13, v14}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 1109
    :goto_0
    return-void

    .line 1052
    :cond_0
    move-object/from16 v0, p0

    iget-object v12, v0, Lframent/FramentOrder;->goodsls:Ljava/util/ArrayList;

    move/from16 v0, p1

    invoke-virtual {v12, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Lbean/GoodsBean;

    .line 1054
    .local v9, "mygoods":Lbean/GoodsBean;
    invoke-virtual {v9}, Lbean/GoodsBean;->getId()Ljava/lang/String;

    move-result-object v5

    .line 1056
    .local v5, "gid":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v12, v0, Lframent/FramentOrder;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v12}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v12

    .line 1057
    new-instance v13, Ljava/lang/StringBuilder;

    const-string v14, "select * from cart where goodsid="

    invoke-direct {v13, v14}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v13, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    const/4 v14, 0x0

    .line 1056
    invoke-virtual {v12, v13, v14}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v12

    move-object/from16 v0, p0

    iput-object v12, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    .line 1058
    const/4 v7, 0x0

    .line 1059
    .local v7, "goodscount":I
    const/4 v2, 0x1

    .line 1060
    .local v2, "checkgd":Z
    const/4 v6, 0x0

    .line 1061
    .local v6, "goodscostone":F
    move-object/from16 v0, p0

    iget-object v12, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    if-eqz v12, :cond_2

    .line 1062
    :goto_1
    move-object/from16 v0, p0

    iget-object v12, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    invoke-interface {v12}, Landroid/database/Cursor;->moveToNext()Z

    move-result v12

    if-nez v12, :cond_1

    .line 1073
    :goto_2
    move-object/from16 v0, p0

    iget-object v12, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    invoke-interface {v12}, Landroid/database/Cursor;->close()V

    .line 1074
    if-eqz v2, :cond_3

    .line 1075
    move-object/from16 v0, p0

    iget-object v12, v0, Lframent/FramentOrder;->mcontext:Landroid/content/Context;

    const-string v13, "\u63d0\u793a\u4fe1\u606f"

    const-string v14, ""

    invoke-static {v12, v13, v14}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 1063
    :cond_1
    move-object/from16 v0, p0

    iget-object v12, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    .line 1064
    const-string v14, "goodscount"

    invoke-interface {v13, v14}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v13

    .line 1063
    invoke-interface {v12, v13}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v12

    invoke-static {v12}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/Integer;->intValue()I

    move-result v7

    .line 1065
    const/4 v2, 0x0

    .line 1066
    move-object/from16 v0, p0

    iget-object v12, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    move-object/from16 v0, p0

    iget-object v13, v0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    .line 1067
    const-string v14, "goodscost"

    invoke-interface {v13, v14}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v13

    .line 1066
    invoke-interface {v12, v13}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v12

    invoke-static {v12}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/Float;->floatValue()F

    move-result v3

    .line 1068
    .local v3, "dajia":F
    const/high16 v12, 0x42c80000    # 100.0f

    mul-float/2addr v12, v3

    invoke-static {v12}, Ljava/lang/Math;->round(F)I

    move-result v12

    int-to-float v12, v12

    const/high16 v13, 0x42c80000    # 100.0f

    div-float v6, v12, v13

    goto :goto_1

    .line 1071
    .end local v3    # "dajia":F
    :cond_2
    const/4 v2, 0x1

    goto :goto_2

    .line 1078
    :cond_3
    add-int/lit8 v10, v7, -0x1

    .line 1079
    .local v10, "newgoodcount":I
    const/4 v12, 0x1

    if-ge v10, v12, :cond_5

    .line 1081
    move-object/from16 v0, p0

    iget-object v12, v0, Lframent/FramentOrder;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v13, "cart"

    new-instance v14, Ljava/lang/StringBuilder;

    const-string v15, "goodsid = \'"

    invoke-direct {v14, v15}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v14, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v14

    const-string v15, "\'"

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    const/4 v15, 0x0

    invoke-virtual {v12, v13, v14, v15}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    .line 1082
    move-object/from16 v0, p0

    iget-object v12, v0, Lframent/FramentOrder;->goodsls:Ljava/util/ArrayList;

    move/from16 v0, p1

    invoke-virtual {v12, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v12

    check-cast v12, Lbean/GoodsBean;

    invoke-static {v10}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v12, v13}, Lbean/GoodsBean;->setCart(Ljava/lang/String;)V

    .line 1089
    :goto_3
    move-object/from16 v0, p0

    iget-object v12, v0, Lframent/FramentOrder;->listView2:Landroid/widget/ListView;

    move-object/from16 v0, p0

    move/from16 v1, p1

    invoke-virtual {v0, v1, v12}, Lframent/FramentOrder;->getViewByPosition(ILandroid/widget/ListView;)Landroid/view/View;

    move-result-object v11

    .line 1090
    .local v11, "tempview":Landroid/view/View;
    const v12, 0x7f0c0081

    invoke-virtual {v11, v12}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v8

    check-cast v8, Landroid/widget/TextView;

    .line 1091
    .local v8, "goodscoust":Landroid/widget/TextView;
    invoke-static {v10}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v8, v12}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1092
    const/4 v12, 0x1

    if-ge v10, v12, :cond_4

    .line 1093
    const v12, 0x7f0c0080

    invoke-virtual {v11, v12}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/ImageView;

    .line 1095
    .local v4, "delbtn":Landroid/widget/ImageView;
    const/16 v12, 0x8

    invoke-virtual {v4, v12}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 1096
    const/16 v12, 0x8

    invoke-virtual {v8, v12}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1100
    .end local v4    # "delbtn":Landroid/widget/ImageView;
    :cond_4
    move-object/from16 v0, p0

    iget v12, v0, Lframent/FramentOrder;->sumcartcost:F

    sub-float/2addr v12, v6

    move-object/from16 v0, p0

    iput v12, v0, Lframent/FramentOrder;->sumcartcost:F

    .line 1102
    move-object/from16 v0, p0

    iget v12, v0, Lframent/FramentOrder;->sumcart:I

    add-int/lit8 v12, v12, -0x1

    move-object/from16 v0, p0

    iput v12, v0, Lframent/FramentOrder;->sumcart:I

    .line 1103
    move-object/from16 v0, p0

    iget-object v12, v0, Lframent/FramentOrder;->tv_num:Lmyview/BadgeView;

    move-object/from16 v0, p0

    iget v13, v0, Lframent/FramentOrder;->sumcart:I

    invoke-static {v13}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v12, v13}, Lmyview/BadgeView;->setText(Ljava/lang/CharSequence;)V

    .line 1105
    move-object/from16 v0, p0

    iget v12, v0, Lframent/FramentOrder;->sumcartcost:F

    const/high16 v13, 0x42c80000    # 100.0f

    mul-float/2addr v12, v13

    invoke-static {v12}, Ljava/lang/Math;->round(F)I

    move-result v12

    int-to-float v12, v12

    const/high16 v13, 0x42c80000    # 100.0f

    div-float/2addr v12, v13

    move-object/from16 v0, p0

    iput v12, v0, Lframent/FramentOrder;->sumcartcost:F

    .line 1106
    move-object/from16 v0, p0

    iget-object v12, v0, Lframent/FramentOrder;->tv_total:Landroid/widget/TextView;

    new-instance v13, Ljava/lang/StringBuilder;

    invoke-direct {v13}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p0

    iget v14, v0, Lframent/FramentOrder;->sumcartcost:F

    invoke-static {v14}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v13, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v12, v13}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0

    .line 1085
    .end local v8    # "goodscoust":Landroid/widget/TextView;
    .end local v11    # "tempview":Landroid/view/View;
    :cond_5
    move-object/from16 v0, p0

    iget-object v12, v0, Lframent/FramentOrder;->cv:Landroid/content/ContentValues;

    const-string v13, "goodscount"

    invoke-static {v10}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v14

    invoke-virtual {v12, v13, v14}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 1086
    move-object/from16 v0, p0

    iget-object v12, v0, Lframent/FramentOrder;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v13, "cart"

    move-object/from16 v0, p0

    iget-object v14, v0, Lframent/FramentOrder;->cv:Landroid/content/ContentValues;

    new-instance v15, Ljava/lang/StringBuilder;

    const-string v16, "goodsid = \'"

    invoke-direct/range {v15 .. v16}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v15, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    const-string v16, "\'"

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    const/16 v16, 0x0

    invoke-virtual/range {v12 .. v16}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    .line 1087
    move-object/from16 v0, p0

    iget-object v12, v0, Lframent/FramentOrder;->goodsls:Ljava/util/ArrayList;

    move/from16 v0, p1

    invoke-virtual {v12, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v12

    check-cast v12, Lbean/GoodsBean;

    invoke-static {v10}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v12, v13}, Lbean/GoodsBean;->setCart(Ljava/lang/String;)V

    goto/16 :goto_3
.end method

.method public getAll()V
    .locals 21

    .prologue
    .line 1540
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    .line 1542
    .local v2, "GoodsBeans":Ljava/util/List;, "Ljava/util/List<Lbean/GoodsBean;>;"
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder;->db:Landroid/database/sqlite/SQLiteDatabase;

    move-object/from16 v18, v0

    new-instance v19, Ljava/lang/StringBuilder;

    const-string v20, "select * from cart where shopid="

    invoke-direct/range {v19 .. v20}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder;->shopid:Ljava/lang/String;

    move-object/from16 v20, v0

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    const/16 v20, 0x0

    invoke-virtual/range {v18 .. v20}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v4

    .line 1544
    .local v4, "cursor":Landroid/database/Cursor;
    :goto_0
    invoke-interface {v4}, Landroid/database/Cursor;->moveToNext()Z

    move-result v18

    if-nez v18, :cond_0

    .line 1564
    const/4 v11, 0x0

    .line 1565
    .local v11, "i":I
    const-string v15, "0"

    .line 1566
    .local v15, "n":Ljava/lang/String;
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v19

    :goto_1
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->hasNext()Z

    move-result v18

    if-nez v18, :cond_1

    .line 1570
    const/4 v12, 0x0

    .line 1571
    .local v12, "j":F
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v19

    :goto_2
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->hasNext()Z

    move-result v18

    if-nez v18, :cond_3

    .line 1576
    const/4 v13, 0x0

    .line 1577
    .local v13, "k":I
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v19

    :goto_3
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->hasNext()Z

    move-result v18

    if-nez v18, :cond_5

    .line 1582
    const/4 v14, 0x0

    .line 1583
    .local v14, "m":F
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v19

    :goto_4
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->hasNext()Z

    move-result v18

    if-nez v18, :cond_7

    .line 1587
    add-int v18, v11, v13

    move/from16 v0, v18

    move-object/from16 v1, p0

    iput v0, v1, Lframent/FramentOrder;->sumcart:I

    .line 1588
    add-float v18, v12, v14

    move/from16 v0, v18

    move-object/from16 v1, p0

    iput v0, v1, Lframent/FramentOrder;->sumcartcost:F

    .line 1589
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder;->tv_num:Lmyview/BadgeView;

    move-object/from16 v18, v0

    move-object/from16 v0, p0

    iget v0, v0, Lframent/FramentOrder;->sumcart:I

    move/from16 v19, v0

    invoke-static/range {v19 .. v19}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v19

    invoke-virtual/range {v18 .. v19}, Lmyview/BadgeView;->setText(Ljava/lang/CharSequence;)V

    .line 1590
    move-object/from16 v0, p0

    iget v0, v0, Lframent/FramentOrder;->sumcartcost:F

    move/from16 v18, v0

    const/high16 v19, 0x42c80000    # 100.0f

    mul-float v18, v18, v19

    invoke-static/range {v18 .. v18}, Ljava/lang/Math;->round(F)I

    move-result v18

    move/from16 v0, v18

    int-to-float v0, v0

    move/from16 v18, v0

    const/high16 v19, 0x42c80000    # 100.0f

    div-float v18, v18, v19

    move/from16 v0, v18

    move-object/from16 v1, p0

    iput v0, v1, Lframent/FramentOrder;->sumcartcost:F

    .line 1591
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder;->tv_total:Landroid/widget/TextView;

    move-object/from16 v18, v0

    move-object/from16 v0, p0

    iget v0, v0, Lframent/FramentOrder;->sumcartcost:F

    move/from16 v19, v0

    invoke-static/range {v19 .. v19}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v19

    invoke-virtual/range {v18 .. v19}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1592
    return-void

    .line 1545
    .end local v11    # "i":I
    .end local v12    # "j":F
    .end local v13    # "k":I
    .end local v14    # "m":F
    .end local v15    # "n":Ljava/lang/String;
    :cond_0
    new-instance v8, Lbean/GoodsBean;

    invoke-direct {v8}, Lbean/GoodsBean;-><init>()V

    .line 1546
    .local v8, "goodsBean":Lbean/GoodsBean;
    const-string v18, "goodsid"

    move-object/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    move/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v7

    .line 1547
    .local v7, "goodid":Ljava/lang/String;
    const-string v18, "shopid"

    move-object/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    move/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v17

    .line 1548
    .local v17, "shopid":Ljava/lang/String;
    const-string v18, "goodsname"

    move-object/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    move/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v10

    .line 1549
    .local v10, "goodsname":Ljava/lang/String;
    const-string v18, "goodscount"

    move-object/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    move/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 1550
    .local v3, "count":Ljava/lang/String;
    const-string v18, "goodscost"

    move-object/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    move/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v9

    .line 1551
    .local v9, "goodscost":Ljava/lang/String;
    const-string v18, "pid"

    move-object/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    move/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v16

    .line 1552
    .local v16, "pid":Ljava/lang/String;
    const-string v18, "pnum"

    move-object/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    move/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v6

    .line 1553
    .local v6, "ggnum":Ljava/lang/String;
    invoke-virtual {v8, v7}, Lbean/GoodsBean;->setId(Ljava/lang/String;)V

    .line 1554
    move-object/from16 v0, v17

    invoke-virtual {v8, v0}, Lbean/GoodsBean;->setShopid(Ljava/lang/String;)V

    .line 1555
    invoke-virtual {v8, v10}, Lbean/GoodsBean;->setname(Ljava/lang/String;)V

    .line 1556
    invoke-virtual {v8, v3}, Lbean/GoodsBean;->setcounts(Ljava/lang/String;)V

    .line 1557
    invoke-static {v9}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/Float;->floatValue()F

    move-result v18

    move/from16 v0, v18

    invoke-virtual {v8, v0}, Lbean/GoodsBean;->setcost(F)V

    .line 1558
    move-object/from16 v0, v16

    invoke-virtual {v8, v0}, Lbean/GoodsBean;->setGgid(Ljava/lang/String;)V

    .line 1559
    invoke-virtual {v8, v6}, Lbean/GoodsBean;->setGgnum(Ljava/lang/String;)V

    .line 1561
    invoke-interface {v2, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto/16 :goto_0

    .line 1566
    .end local v3    # "count":Ljava/lang/String;
    .end local v6    # "ggnum":Ljava/lang/String;
    .end local v7    # "goodid":Ljava/lang/String;
    .end local v8    # "goodsBean":Lbean/GoodsBean;
    .end local v9    # "goodscost":Ljava/lang/String;
    .end local v10    # "goodsname":Ljava/lang/String;
    .end local v16    # "pid":Ljava/lang/String;
    .end local v17    # "shopid":Ljava/lang/String;
    .restart local v11    # "i":I
    .restart local v15    # "n":Ljava/lang/String;
    :cond_1
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lbean/GoodsBean;

    .line 1567
    .local v5, "e":Lbean/GoodsBean;
    invoke-virtual {v5}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v18

    if-nez v18, :cond_2

    invoke-virtual {v5}, Lbean/GoodsBean;->getcounts()Ljava/lang/String;

    move-result-object v18

    :goto_5
    invoke-static/range {v18 .. v18}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/Integer;->intValue()I

    move-result v18

    add-int v11, v11, v18

    goto/16 :goto_1

    :cond_2
    move-object/from16 v18, v15

    goto :goto_5

    .line 1571
    .end local v5    # "e":Lbean/GoodsBean;
    .restart local v12    # "j":F
    :cond_3
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lbean/GoodsBean;

    .line 1572
    .restart local v5    # "e":Lbean/GoodsBean;
    invoke-virtual {v5}, Lbean/GoodsBean;->getcost()F

    move-result v20

    invoke-virtual {v5}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v18

    if-nez v18, :cond_4

    invoke-virtual {v5}, Lbean/GoodsBean;->getcounts()Ljava/lang/String;

    move-result-object v18

    :goto_6
    invoke-static/range {v18 .. v18}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/Float;->floatValue()F

    move-result v18

    mul-float v18, v18, v20

    add-float v12, v12, v18

    goto/16 :goto_2

    :cond_4
    move-object/from16 v18, v15

    goto :goto_6

    .line 1577
    .end local v5    # "e":Lbean/GoodsBean;
    .restart local v13    # "k":I
    :cond_5
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lbean/GoodsBean;

    .line 1578
    .restart local v5    # "e":Lbean/GoodsBean;
    invoke-virtual {v5}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v18

    if-eqz v18, :cond_6

    invoke-virtual {v5}, Lbean/GoodsBean;->getGgnum()Ljava/lang/String;

    move-result-object v18

    :goto_7
    invoke-static/range {v18 .. v18}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/Integer;->intValue()I

    move-result v18

    add-int v13, v13, v18

    goto/16 :goto_3

    :cond_6
    move-object/from16 v18, v15

    goto :goto_7

    .line 1583
    .end local v5    # "e":Lbean/GoodsBean;
    .restart local v14    # "m":F
    :cond_7
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lbean/GoodsBean;

    .line 1584
    .restart local v5    # "e":Lbean/GoodsBean;
    invoke-virtual {v5}, Lbean/GoodsBean;->getcost()F

    move-result v20

    invoke-virtual {v5}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v18

    if-eqz v18, :cond_8

    invoke-virtual {v5}, Lbean/GoodsBean;->getGgnum()Ljava/lang/String;

    move-result-object v18

    :goto_8
    invoke-static/range {v18 .. v18}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/Float;->floatValue()F

    move-result v18

    mul-float v18, v18, v20

    add-float v14, v14, v18

    goto/16 :goto_4

    :cond_8
    move-object/from16 v18, v15

    goto :goto_8
.end method

.method public getShopSource()Z
    .locals 1

    .prologue
    .line 1207
    new-instance v0, Lframent/FramentOrder$5;

    invoke-direct {v0, p0}, Lframent/FramentOrder$5;-><init>(Lframent/FramentOrder;)V

    .line 1351
    invoke-virtual {v0}, Lframent/FramentOrder$5;->start()V

    .line 1352
    const/4 v0, 0x0

    return v0
.end method

.method public getTypePostion()V
    .locals 5
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    .prologue
    const/4 v4, 0x0

    .line 814
    iget-object v2, p0, Lframent/FramentOrder;->listView2:Landroid/widget/ListView;

    invoke-virtual {v2}, Landroid/widget/ListView;->getFirstVisiblePosition()I

    move-result v1

    .line 815
    .local v1, "postion":I
    iget-boolean v2, p0, Lframent/FramentOrder;->islocked:Z

    if-eqz v2, :cond_0

    .line 816
    iput-boolean v4, p0, Lframent/FramentOrder;->islocked:Z

    .line 817
    iput v1, p0, Lframent/FramentOrder;->start:I

    .line 820
    :cond_0
    iget v2, p0, Lframent/FramentOrder;->start:I

    if-eq v2, v1, :cond_4

    .line 821
    iput v1, p0, Lframent/FramentOrder;->start:I

    .line 822
    iget-object v2, p0, Lframent/FramentOrder;->goodsls:Ljava/util/ArrayList;

    iget v3, p0, Lframent/FramentOrder;->start:I

    invoke-virtual {v2, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lbean/GoodsBean;

    invoke-virtual {v2}, Lbean/GoodsBean;->getFirstid()Ljava/lang/String;

    move-result-object v2

    const-string v3, "1"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    .line 823
    iget-object v2, p0, Lframent/FramentOrder;->style_top:Landroid/widget/LinearLayout;

    const/16 v3, 0x8

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 825
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    iget-object v2, p0, Lframent/FramentOrder;->shoptyls:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-lt v0, v2, :cond_1

    .line 844
    .end local v0    # "i":I
    :goto_1
    return-void

    .line 827
    .restart local v0    # "i":I
    :cond_1
    iget-object v2, p0, Lframent/FramentOrder;->shoptyls:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lbean/ShoptypeBean;

    invoke-virtual {v2}, Lbean/ShoptypeBean;->getname()Ljava/lang/String;

    move-result-object v3

    iget-object v2, p0, Lframent/FramentOrder;->goodsls:Ljava/util/ArrayList;

    iget v4, p0, Lframent/FramentOrder;->start:I

    invoke-virtual {v2, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lbean/GoodsBean;

    invoke-virtual {v2}, Lbean/GoodsBean;->getTitleName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v3, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    .line 828
    sget-object v3, Lframent/FramentOrder;->tv_select_boday:Landroid/widget/TextView;

    iget-object v2, p0, Lframent/FramentOrder;->shoptyls:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lbean/ShoptypeBean;

    invoke-virtual {v2}, Lbean/ShoptypeBean;->getname()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v3, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 829
    iget-object v2, p0, Lframent/FramentOrder;->stbd:Ldata/ShoptTypeData;

    invoke-virtual {v2, v0}, Ldata/ShoptTypeData;->setSelectedPosition(I)V

    .line 830
    iget-object v2, p0, Lframent/FramentOrder;->stbd:Ldata/ShoptTypeData;

    invoke-virtual {v2}, Ldata/ShoptTypeData;->notifyDataSetChanged()V

    goto :goto_1

    .line 825
    :cond_2
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 836
    .end local v0    # "i":I
    :cond_3
    iget-object v2, p0, Lframent/FramentOrder;->style_top:Landroid/widget/LinearLayout;

    invoke-virtual {v2, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_1

    .line 840
    :cond_4
    iget-object v2, p0, Lframent/FramentOrder;->style_top:Landroid/widget/LinearLayout;

    invoke-virtual {v2, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_1
.end method

.method public getViewByPosition(ILandroid/widget/ListView;)Landroid/view/View;
    .locals 5
    .param p1, "pos"    # I
    .param p2, "listView"    # Landroid/widget/ListView;

    .prologue
    .line 954
    invoke-virtual {p2}, Landroid/widget/ListView;->getFirstVisiblePosition()I

    move-result v1

    .line 956
    .local v1, "firstListItemPosition":I
    invoke-virtual {p2}, Landroid/widget/ListView;->getChildCount()I

    move-result v3

    .line 955
    add-int/2addr v3, v1

    add-int/lit8 v2, v3, -0x1

    .line 958
    .local v2, "lastListItemPosition":I
    if-lt p1, v1, :cond_0

    if-le p1, v2, :cond_1

    .line 960
    :cond_0
    invoke-virtual {p2}, Landroid/widget/ListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v3

    const/4 v4, 0x0

    invoke-interface {v3, p1, v4, p2}, Landroid/widget/ListAdapter;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    .line 963
    :goto_0
    return-object v3

    .line 962
    :cond_1
    sub-int v0, p1, v1

    .line 963
    .local v0, "childIndex":I
    invoke-virtual {p2, v0}, Landroid/widget/ListView;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    goto :goto_0
.end method

.method public getcar()V
    .locals 5

    .prologue
    .line 847
    iget-object v2, p0, Lframent/FramentOrder;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v2}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v2

    .line 848
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "select * from cart where shopid="

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v4, p0, Lframent/FramentOrder;->shopid:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x0

    .line 847
    invoke-virtual {v2, v3, v4}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v2

    iput-object v2, p0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    .line 849
    const-string v1, ""

    .line 850
    .local v1, "idscount":Ljava/lang/String;
    const-string v0, ""

    .line 852
    .local v0, "cost":Ljava/lang/String;
    iget-object v2, p0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    if-eqz v2, :cond_0

    .line 853
    :goto_0
    iget-object v2, p0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    invoke-interface {v2}, Landroid/database/Cursor;->moveToNext()Z

    move-result v2

    if-nez v2, :cond_1

    .line 863
    :cond_0
    return-void

    .line 854
    :cond_1
    iget-object v2, p0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    iget-object v3, p0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    const-string v4, "goodscount"

    invoke-interface {v3, v4}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v3

    invoke-interface {v2, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 855
    iget-object v2, p0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    iget-object v3, p0, Lframent/FramentOrder;->cursor:Landroid/database/Cursor;

    const-string v4, "goodscost"

    invoke-interface {v3, v4}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v3

    invoke-interface {v2, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 856
    iget v2, p0, Lframent/FramentOrder;->sumcart:I

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v3

    add-int/2addr v2, v3

    iput v2, p0, Lframent/FramentOrder;->sumcart:I

    .line 857
    iget-object v2, p0, Lframent/FramentOrder;->total:Ljava/lang/String;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v3, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v2

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I

    move-result v4

    mul-int/2addr v2, v4

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lframent/FramentOrder;->total:Ljava/lang/String;

    goto :goto_0
.end method

.method public loadgoodsview(Ljava/lang/String;)V
    .locals 6
    .param p1, "catid"    # Ljava/lang/String;

    .prologue
    .line 936
    invoke-static {p1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v1

    .line 938
    .local v1, "cc":I
    if-nez v1, :cond_1

    .line 939
    iget-object v4, p0, Lframent/FramentOrder;->listView2:Landroid/widget/ListView;

    const/4 v5, 0x0

    invoke-virtual {v4, v5}, Landroid/widget/ListView;->setSelection(I)V

    .line 950
    :cond_0
    :goto_0
    return-void

    .line 941
    :cond_1
    const/4 v3, 0x0

    .local v3, "k":I
    :goto_1
    iget-object v4, p0, Lframent/FramentOrder;->goodsls:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-ge v3, v4, :cond_0

    .line 942
    iget-object v4, p0, Lframent/FramentOrder;->goodsls:Ljava/util/ArrayList;

    invoke-virtual {v4, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lbean/GoodsBean;

    .line 943
    .local v0, "bb":Lbean/GoodsBean;
    invoke-virtual {v0}, Lbean/GoodsBean;->gettypeid()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v2

    .line 944
    .local v2, "cd":I
    if-ne v2, v1, :cond_2

    .line 945
    iget-object v4, p0, Lframent/FramentOrder;->listView2:Landroid/widget/ListView;

    const/4 v5, -0x1

    invoke-virtual {v4, v3, v5}, Landroid/widget/ListView;->setSelectionFromTop(II)V

    goto :goto_0

    .line 941
    :cond_2
    add-int/lit8 v3, v3, 0x1

    goto :goto_1
.end method

.method public onActivityResult(IILandroid/content/Intent;)V
    .locals 3
    .param p1, "requestCode"    # I
    .param p2, "resultCode"    # I
    .param p3, "data"    # Landroid/content/Intent;

    .prologue
    .line 1599
    invoke-super {p0, p1, p2, p3}, Landroid/support/v4/app/Fragment;->onActivityResult(IILandroid/content/Intent;)V

    .line 1601
    const/16 v1, 0x7b

    if-ne p1, v1, :cond_0

    .line 1602
    const/4 v1, 0x1

    if-ne p2, v1, :cond_0

    .line 1603
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 1604
    .local v0, "intent":Landroid/content/Intent;
    const-string v1, "shopid"

    iget-object v2, p0, Lframent/FramentOrder;->shopid:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 1605
    const-string v1, "shopname"

    iget-object v2, p0, Lframent/FramentOrder;->shopname:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 1606
    invoke-virtual {p0}, Lframent/FramentOrder;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    const-class v2, Lcom/example/m6wmr/CarOrderActivity;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 1607
    invoke-virtual {p0, v0}, Lframent/FramentOrder;->startActivity(Landroid/content/Intent;)V

    .line 1612
    .end local v0    # "intent":Landroid/content/Intent;
    :cond_0
    return-void
.end method

.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 8
    .param p1, "inflater"    # Landroid/view/LayoutInflater;
    .param p2, "container"    # Landroid/view/ViewGroup;
    .param p3, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    const/4 v4, 0x0

    const v2, -0xd53e87

    .line 172
    iput-object p3, p0, Lframent/FramentOrder;->savedInstanceState:Landroid/os/Bundle;

    .line 174
    iput-object p1, p0, Lframent/FramentOrder;->inflater:Landroid/view/LayoutInflater;

    .line 175
    const v0, 0x7f030049

    const/4 v1, 0x0

    invoke-virtual {p1, v0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lframent/FramentOrder;->view:Landroid/view/View;

    .line 176
    invoke-virtual {p0}, Lframent/FramentOrder;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    iput-object v0, p0, Lframent/FramentOrder;->mcontext:Landroid/content/Context;

    .line 177
    invoke-virtual {p0}, Lframent/FramentOrder;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    iput-object v0, p0, Lframent/FramentOrder;->context:Landroid/content/Context;

    .line 178
    invoke-virtual {p0}, Lframent/FramentOrder;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Lmyapp/MyApp;

    iput-object v0, p0, Lframent/FramentOrder;->m:Lmyapp/MyApp;

    .line 179
    invoke-virtual {p0}, Lframent/FramentOrder;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    sput-object v0, Lframent/FramentOrder;->shopshow:Landroid/support/v4/app/FragmentActivity;

    .line 180
    invoke-virtual {p0}, Lframent/FramentOrder;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentActivity;->getIntent()Landroid/content/Intent;

    move-result-object v7

    .line 181
    .local v7, "intent":Landroid/content/Intent;
    const-string v0, "shopid"

    invoke-virtual {v7, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lframent/FramentOrder;->shopid:Ljava/lang/String;

    .line 182
    const-string v0, "shopname"

    invoke-virtual {v7, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lframent/FramentOrder;->shopname:Ljava/lang/String;

    .line 183
    const-string v0, "xiuxi"

    invoke-virtual {v7, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lframent/FramentOrder;->open:Ljava/lang/String;

    .line 185
    iput v4, p0, Lframent/FramentOrder;->sumcart:I

    .line 186
    const/4 v0, 0x0

    iput v0, p0, Lframent/FramentOrder;->sumcartcost:F

    .line 189
    invoke-direct {p0}, Lframent/FramentOrder;->initVeiw()V

    .line 191
    iget-object v0, p0, Lframent/FramentOrder;->m:Lmyapp/MyApp;

    invoke-virtual {v0}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v0

    const-string v1, "1"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 193
    iget-object v0, p0, Lframent/FramentOrder;->must:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(I)V

    .line 194
    iget-object v0, p0, Lframent/FramentOrder;->noticd2:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(I)V

    .line 195
    iget-object v0, p0, Lframent/FramentOrder;->rl_shopbox:Landroid/widget/RelativeLayout;

    const v1, 0x7f020021

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setBackgroundResource(I)V

    .line 196
    iget-object v0, p0, Lframent/FramentOrder;->tv_total:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(I)V

    .line 197
    iget-object v0, p0, Lframent/FramentOrder;->tv_total1:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(I)V

    .line 198
    iget-object v0, p0, Lframent/FramentOrder;->pay:Landroid/widget/LinearLayout;

    const v1, 0x7f02001e

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 199
    iget-object v0, p0, Lframent/FramentOrder;->tv_pay:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(I)V

    .line 201
    iget-object v0, p0, Lframent/FramentOrder;->view:Landroid/view/View;

    const v1, 0x7f0c019c

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/ImageView;

    .line 202
    .local v6, "animation":Landroid/widget/ImageView;
    const v0, 0x7f020023

    invoke-virtual {v6, v0}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 207
    .end local v6    # "animation":Landroid/widget/ImageView;
    :cond_0
    invoke-direct {p0}, Lframent/FramentOrder;->setOncliclistener()V

    .line 209
    invoke-virtual {p0}, Lframent/FramentOrder;->setlistViewonitemlisetnerner()V

    .line 210
    new-instance v0, Ldbclass/DBOpenHelper;

    invoke-virtual {p0}, Lframent/FramentOrder;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    invoke-direct {v0, v1}, Ldbclass/DBOpenHelper;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lframent/FramentOrder;->helper:Ldbclass/DBOpenHelper;

    .line 211
    iget-object v0, p0, Lframent/FramentOrder;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v0}, Ldbclass/DBOpenHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    iput-object v0, p0, Lframent/FramentOrder;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 212
    iget-object v0, p0, Lframent/FramentOrder;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v0}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    iput-object v0, p0, Lframent/FramentOrder;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 213
    new-instance v0, Landroid/content/ContentValues;

    invoke-direct {v0}, Landroid/content/ContentValues;-><init>()V

    iput-object v0, p0, Lframent/FramentOrder;->cv:Landroid/content/ContentValues;

    .line 214
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lframent/FramentOrder;->goodsls:Ljava/util/ArrayList;

    .line 215
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lframent/FramentOrder;->shoptyls:Ljava/util/ArrayList;

    .line 216
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lframent/FramentOrder;->tempgd:Ljava/util/ArrayList;

    .line 217
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lframent/FramentOrder;->tempsp:Ljava/util/ArrayList;

    .line 219
    invoke-virtual {p0}, Lframent/FramentOrder;->getShopSource()Z

    .line 220
    new-instance v0, Lframent/FramentOrder$1;

    invoke-direct {v0, p0}, Lframent/FramentOrder$1;-><init>(Lframent/FramentOrder;)V

    sput-object v0, Lframent/FramentOrder;->h:Landroid/os/Handler;

    .line 679
    new-instance v0, Ldata/ShoptTypeData;

    iget-object v1, p0, Lframent/FramentOrder;->shoptyls:Ljava/util/ArrayList;

    iget-object v2, p0, Lframent/FramentOrder;->context:Landroid/content/Context;

    iget-object v3, p0, Lframent/FramentOrder;->listView:Landroid/widget/ListView;

    invoke-direct {v0, v1, v2, v3, v4}, Ldata/ShoptTypeData;-><init>(Ljava/util/List;Landroid/content/Context;Landroid/widget/ListView;I)V

    iput-object v0, p0, Lframent/FramentOrder;->stbd:Ldata/ShoptTypeData;

    .line 680
    iget-object v0, p0, Lframent/FramentOrder;->listView:Landroid/widget/ListView;

    invoke-virtual {v0, v4}, Landroid/widget/ListView;->setCacheColorHint(I)V

    .line 681
    iget-object v0, p0, Lframent/FramentOrder;->listView:Landroid/widget/ListView;

    iget-object v1, p0, Lframent/FramentOrder;->stbd:Ldata/ShoptTypeData;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 684
    iget-object v0, p0, Lframent/FramentOrder;->listView:Landroid/widget/ListView;

    new-instance v1, Lframent/FramentOrder$2;

    invoke-direct {v1, p0}, Lframent/FramentOrder$2;-><init>(Lframent/FramentOrder;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 704
    new-instance v0, Ldata/GoodsAdapter;

    iget-object v1, p0, Lframent/FramentOrder;->context:Landroid/content/Context;

    iget-object v2, p0, Lframent/FramentOrder;->goodsls:Ljava/util/ArrayList;

    iget-object v3, p0, Lframent/FramentOrder;->listView2:Landroid/widget/ListView;

    sget-object v4, Lframent/FramentOrder;->tv_select_boday:Landroid/widget/TextView;

    iget-object v5, p0, Lframent/FramentOrder;->open:Ljava/lang/String;

    invoke-direct/range {v0 .. v5}, Ldata/GoodsAdapter;-><init>(Landroid/content/Context;Ljava/util/List;Landroid/widget/ListView;Landroid/widget/TextView;Ljava/lang/String;)V

    iput-object v0, p0, Lframent/FramentOrder;->gdbd1:Ldata/GoodsAdapter;

    .line 706
    iget-object v0, p0, Lframent/FramentOrder;->listView2:Landroid/widget/ListView;

    iget-object v1, p0, Lframent/FramentOrder;->gdbd1:Ldata/GoodsAdapter;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 708
    iget-object v0, p0, Lframent/FramentOrder;->listView2:Landroid/widget/ListView;

    new-instance v1, Lframent/FramentOrder$3;

    invoke-direct {v1, p0}, Lframent/FramentOrder$3;-><init>(Lframent/FramentOrder;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V

    .line 756
    iget-object v0, p0, Lframent/FramentOrder;->pay:Landroid/widget/LinearLayout;

    new-instance v1, Lframent/FramentOrder$4;

    invoke-direct {v1, p0}, Lframent/FramentOrder$4;-><init>(Lframent/FramentOrder;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 802
    iget-object v0, p0, Lframent/FramentOrder;->view:Landroid/view/View;

    return-object v0
.end method

.method public onStart()V
    .locals 2

    .prologue
    .line 914
    invoke-virtual {p0}, Lframent/FramentOrder;->getAll()V

    .line 915
    iget-object v0, p0, Lframent/FramentOrder;->list:Landroid/widget/ListView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setVisibility(I)V

    .line 917
    invoke-super {p0}, Landroid/support/v4/app/Fragment;->onStart()V

    .line 918
    return-void
.end method

.method public onStop()V
    .locals 4

    .prologue
    .line 922
    invoke-virtual {p0}, Lframent/FramentOrder;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    .line 923
    const-string v2, "buyInfo"

    const/4 v3, 0x0

    .line 922
    invoke-virtual {v1, v2, v3}, Landroid/support/v4/app/FragmentActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    .line 924
    .local v0, "userInfo":Landroid/content/SharedPreferences;
    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    const-string v2, "goodsid"

    iget-object v3, p0, Lframent/FramentOrder;->goodsid:Ljava/lang/String;

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 925
    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    const-string v2, "total"

    iget v3, p0, Lframent/FramentOrder;->sumcart:I

    invoke-static {v3}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v3

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 926
    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    const-string v2, "sumcartcost"

    iget v3, p0, Lframent/FramentOrder;->sumcartcost:F

    invoke-static {v3}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v3

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    .line 927
    invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 928
    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    const-string v2, "bag"

    iget-object v3, p0, Lframent/FramentOrder;->bag:Ljava/lang/String;

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 930
    invoke-super {p0}, Landroid/support/v4/app/Fragment;->onStop()V

    .line 931
    return-void
.end method

.method public refresh(Ljava/lang/String;Ljava/lang/String;)V
    .locals 13
    .param p1, "dogoodsid"    # Ljava/lang/String;
    .param p2, "dotype"    # Ljava/lang/String;

    .prologue
    const v12, 0x7f0c0081

    const v11, 0x7f0c0080

    const/16 v10, 0x8

    const/4 v9, 0x0

    .line 865
    const/4 v5, 0x0

    .line 866
    .local v5, "newposition":I
    const/4 v1, 0x0

    .line 867
    .local v1, "findflag":Z
    const/4 v3, 0x0

    .local v3, "i":I
    :goto_0
    iget-object v8, p0, Lframent/FramentOrder;->goodsls:Ljava/util/ArrayList;

    invoke-virtual {v8}, Ljava/util/ArrayList;->size()I

    move-result v8

    if-lt v3, v8, :cond_2

    .line 877
    if-eqz v1, :cond_1

    .line 879
    const-string v8, "del"

    invoke-virtual {p2, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_4

    .line 880
    iget-object v8, p0, Lframent/FramentOrder;->listView2:Landroid/widget/ListView;

    invoke-virtual {p0, v5, v8}, Lframent/FramentOrder;->getViewByPosition(ILandroid/widget/ListView;)Landroid/view/View;

    move-result-object v7

    .line 881
    .local v7, "tempview":Landroid/view/View;
    invoke-virtual {v7, v12}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 882
    .local v2, "goodscoust":Landroid/widget/TextView;
    invoke-virtual {v7, v11}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 883
    .local v0, "delbtn":Landroid/widget/ImageView;
    invoke-virtual {v2}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v8

    invoke-interface {v8}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-static {v8}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/Integer;->intValue()I

    move-result v6

    .line 884
    .local v6, "oldshu":I
    add-int/lit8 v6, v6, -0x1

    .line 885
    const/4 v8, 0x1

    if-ge v6, v8, :cond_0

    .line 887
    const/4 v6, 0x0

    .line 888
    invoke-virtual {v2, v10}, Landroid/widget/TextView;->setVisibility(I)V

    .line 889
    invoke-virtual {v0, v10}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 892
    :cond_0
    iget-object v8, p0, Lframent/FramentOrder;->goodsls:Ljava/util/ArrayList;

    invoke-virtual {v8, v5}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lbean/GoodsBean;

    invoke-static {v6}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Lbean/GoodsBean;->setCart(Ljava/lang/String;)V

    .line 893
    invoke-static {v6}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v2, v8}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 909
    .end local v0    # "delbtn":Landroid/widget/ImageView;
    .end local v2    # "goodscoust":Landroid/widget/TextView;
    .end local v6    # "oldshu":I
    .end local v7    # "tempview":Landroid/view/View;
    :cond_1
    :goto_1
    return-void

    .line 869
    :cond_2
    iget-object v8, p0, Lframent/FramentOrder;->goodsls:Ljava/util/ArrayList;

    invoke-virtual {v8, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lbean/GoodsBean;

    .line 871
    .local v4, "kk":Lbean/GoodsBean;
    invoke-virtual {v4}, Lbean/GoodsBean;->getId()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {p1, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_3

    .line 873
    move v5, v3

    .line 874
    const/4 v1, 0x1

    .line 867
    :cond_3
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    .line 896
    .end local v4    # "kk":Lbean/GoodsBean;
    :cond_4
    iget-object v8, p0, Lframent/FramentOrder;->listView2:Landroid/widget/ListView;

    invoke-virtual {p0, v5, v8}, Lframent/FramentOrder;->getViewByPosition(ILandroid/widget/ListView;)Landroid/view/View;

    move-result-object v7

    .line 897
    .restart local v7    # "tempview":Landroid/view/View;
    invoke-virtual {v7, v12}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 898
    .restart local v2    # "goodscoust":Landroid/widget/TextView;
    invoke-virtual {v7, v11}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 899
    .restart local v0    # "delbtn":Landroid/widget/ImageView;
    invoke-virtual {v2}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v8

    invoke-interface {v8}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-static {v8}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/Integer;->intValue()I

    move-result v6

    .line 900
    .restart local v6    # "oldshu":I
    add-int/lit8 v6, v6, 0x1

    .line 901
    invoke-virtual {v2, v9}, Landroid/widget/TextView;->setVisibility(I)V

    .line 902
    invoke-virtual {v0, v9}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 903
    iget-object v8, p0, Lframent/FramentOrder;->goodsls:Ljava/util/ArrayList;

    invoke-virtual {v8, v5}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lbean/GoodsBean;

    invoke-static {v6}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Lbean/GoodsBean;->setCart(Ljava/lang/String;)V

    .line 904
    invoke-static {v6}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v2, v8}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1
.end method

.method public setlistViewonitemlisetnerner()V
    .locals 2

    .prologue
    .line 1360
    iget-object v0, p0, Lframent/FramentOrder;->listView2:Landroid/widget/ListView;

    new-instance v1, Lframent/FramentOrder$6;

    invoke-direct {v1, p0}, Lframent/FramentOrder$6;-><init>(Lframent/FramentOrder;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 1380
    return-void
.end method
